package com.ujiuye.service;

import com.ujiuye.dao.HomeworkDao;
import com.ujiuye.pojo.User;

import java.util.List;

public class HomeworkService {
    private HomeworkDao hd = new HomeworkDao();
    //验证账号唯一
    public boolean validUname(String uname) {
        int i =  hd.validUname(uname);

        return i > 0;
    }

    //模糊查询
    public List<User> dimQuery(String uname) {
        return hd.dimQuery(uname);
    }
}
